<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
    <title>文档展示页面</title>
</head>
<body>
<div style="width:1200px;height:800px;" th:utext="${pageoffice}"></div>
</body>
<<<<<<< HEAD
<script src="../static/js/jquery-3.3.1.min.js"></script>
<!--dev-->
<!--<script type="text/javascript"  src=http://localhost:8080/pageoffice.js id="po_js_main"></script>-->
<!--prod-->
<script type="text/javascript"  src=http://47.95.143.128:8080/pageoffice.js id="po_js_main"></script>
=======
<script src="/static/js/jquery-3.3.1.min.js"></script>
<script type="text/javascript"  src="/pageoffice.js" id="po_js_main"></script>
>>>>>>> dev
<script type="text/javascript">

    // Word文档修改后保存
    function Save() {
        document.getElementById("PageOfficeCtrl1").WebSave();
    }

    // Word文档关闭前提示用户是否保存
    function BeforeBrowserClosed(){
        //IsDirty属性只对word文档有效
        if (document.getElementById("PageOfficeCtrl1").IsDirty){
            if(confirm("提示:文档已被修改，是否继续关闭放弃保存 ？"))
            {
                return true;
            }else{
                return false;
            }
        }
    }

</script>
</html>
